package com.itheima.domian;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author 12441
 * @Date 2022/8/21 13:43
 * @Version 1.0
 */
@Data
public class Orders implements Serializable {
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;
  //订单号
  private String number;
  private String userId;
  private Integer status;
  private String amount;
  private LocalDateTime orderTime;
  private LocalDateTime checkoutTime;
  private String remark;
  //支付方式 -微信 -支付宝
  private Integer payMethod;
  private String addressBookId;
  private String phone;
  private String address;
  private String userName;
  //收货人
  private String consignee;
}
